package com.lin.cms.domain;

import java.io.Serializable;
import java.util.Date;

public class Content implements Serializable {

	private static final long serialVersionUID = 1L;

	private int contentId;

	private int channelId;

	private int userId;

	private int typeId;

	private int siteId;

	private Date sortDate;

	private int topLevel;

	private String hasTitleImg;

	private String isRecommend;

	private int status;

	private int viewsDay;

	private int commentsDay;

	private int downloadsDay;

	private int upsDay;

	public Content() {
	}

	public int getContentId() {
		return contentId;
	}

	public void setContentId(int contentId) {
		this.contentId = contentId;
	}

	public int getChannelId() {
		return channelId;
	}

	public void setChannelId(int channelId) {
		this.channelId = channelId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getTypeId() {
		return typeId;
	}

	public void setTypeId(int typeId) {
		this.typeId = typeId;
	}

	public int getSiteId() {
		return siteId;
	}

	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}

	public Date getSortDate() {
		return sortDate;
	}

	public void setSortDate(Date sortDate) {
		this.sortDate = sortDate;
	}

	public int getTopLevel() {
		return topLevel;
	}

	public void setTopLevel(int topLevel) {
		this.topLevel = topLevel;
	}

	public String getHasTitleImg() {
		return hasTitleImg;
	}

	public void setHasTitleImg(String hasTitleImg) {
		this.hasTitleImg = hasTitleImg;
	}

	public String getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(String isRecommend) {
		this.isRecommend = isRecommend;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getViewsDay() {
		return viewsDay;
	}

	public void setViewsDay(int viewsDay) {
		this.viewsDay = viewsDay;
	}

	public int getCommentsDay() {
		return commentsDay;
	}

	public void setCommentsDay(int commentsDay) {
		this.commentsDay = commentsDay;
	}

	public int getDownloadsDay() {
		return downloadsDay;
	}

	public void setDownloadsDay(int downloadsDay) {
		this.downloadsDay = downloadsDay;
	}

	public int getUpsDay() {
		return upsDay;
	}

	public void setUpsDay(int upsDay) {
		this.upsDay = upsDay;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + contentId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Content other = (Content) obj;
		if (contentId != other.contentId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"contentId=" + "'" + contentId + "'" + 
			")";
	}
	
}
